5
5
.
.
5
5
.
.
c
c
l
l
i
i
p
p
p
p
e
e
d
d
I
I
n
n
f
f
o
o
.clipped removes content of Child View that is outside of the Parent's View.
Syntax
.clipped()
E
E
x
x
a
a
m
m
p
p
l
l
e
e
Example
struct ContentView: View {
var body: some View {
VStack {
Text("First")
Text("Second").offset(x: 30)
Text("Third")
}.border(Color.red, width: 2).clipped()
}
}
Output